* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'open sans';
}

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: #e30613;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

/* Header */

header {
    width: 100%;
    height: 600px;
    background: #e30613;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right,hwb(340 0% 9% / 0.549),  hsla(340, 100%, 89%, 0.459)), url(../img/portadaNew.png);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right,  hsla(359, 85%, 37%, 0.549), hsla(340, 100%, 89%, 0.459)), url(../img/portadaNew.png);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

nav{
    text-align: right;
    padding: 30px 50px 0 0;
}

nav > a{
    color:#fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
}

nav > a:hover{
    text-decoration: underline;
    text-decoration-color: #e30613; 
}

header .textos-header{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.p{
    background: #f2f2f2;
}

.textos-header h1{
    font-size: 80px;
    color:#fff;
}

.textos-header h2{
    font-size: 30px;
    font-weight: 300;
    color:#fff;
}

.wave{
    position: absolute;
    bottom: 0;
    width: 100%;
}

.imagen-header {
    width: 100%; 
    max-width: 300px;
    height: auto; 
    margin-bottom: 20px;
}
/* Margen */
.margen {
    width: auto;
    height: 20px;
    padding-bottom: 10px;
    background-image: url('../img/patron.png');
    background-repeat: repeat-x;
    background-position: top left;
    background-size: auto 150px; 
  }
/* About us */

main .sobre-nosotros{
    padding: 30px 0 60px 0;
}
.contenedor-sobre-nosotros{
    display: flex;
    justify-content: center;
}

.imagen-about-us{
    width: 48%;
}

.sobre-nosotros .contenido-textos{
    width: 48%;
}

.contenido-textos h3{
    margin-bottom: 15px;
}

.contenido-textos h3 span{
    background: #e30613;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

/* Galeria */


.portafolio{
    background: #f2f2f2;
    padding-bottom: 80px;
}

.galeria-port{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.imagen-port{
    width: 24%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: hsla(340, 88%, 16%, 0.549);
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hover-galeria img{
    width: 50px;
}

.hover-galeria p{
    color: #fff;
}

.imagen-port:hover .hover-galeria{
    transform: scale(1);
}

/* Clients */

.cards{
    display: flex;
    justify-content: space-evenly;
}

.cards .card{
    background: #981111;
    display: flex;
    width: 46%;
    height: 200px;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.6);
}

.cards .card img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    display: block;
}

.cards .card > .contenido-texto-card{
    width: 60%;
    color: #fff;
}

.cards .card > .contenido-texto-card p{
    font-weight: 300;
    padding-top: 5px;
    text-align: justify;
}

/*  Our team */

.about-services{
    background: #f2f2f2;
    padding-bottom: 30px;
}


.servicio-cont{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.servicio-ind{
    width: 28%;
    text-align: center;
}

.servicio-ind img{
    width: 90%;
}

.servicio-ind h3{
    margin: 10px 0;
}

.servicio-ind p{
    font-weight: 300;
    text-align: justify;
}

/* footer */

footer{
    background: #e30613;
    padding: 30px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer{
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #fff;
    border-bottom: 3px solid #ffffff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}

.contenedor-footer {
    max-width: 80%;
    margin: 0 auto;
  }
.contenedor-navegacion {
    max-width: 80%;
    margin: 0 auto;
  }
  
.imagen-footer {
    max-width: 300px;
    height: auto;
    padding-top: 40px;
  }

@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-nosotros .contenido-textos{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    }

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    /* Clientes */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

    /* servicios */

    .servicio-cont{
        justify-content: center;
        flex-direction: column;
    }

    .servicio-ind{
        width: 100%;
        text-align: center;
    }

    .servicio-ind:nth-child(1), .servicio-ind:nth-child(2){
        margin-bottom: 60px;
    }

    .servicio-ind img{
        width: 90%;
    }
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .textos-header h1{
        font-size: 35px;
    }

    .textos-header h2{
        font-size: 20px;
    }

    /* ABOUT US */

    .imagen-about-us{
        margin-bottom: 60px;
        width: 99%;
    }

    .sobre-nosotros .contenido-textos{
        width: 95%;
    }

    /* Galeria */

    .imagen-port{
        width: 95%;
    }

    /* Clients */

    .cards .card{
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }

    /* Footer */

    .contenedor-footer{
        flex-direction: column;
        border: none;
    }

    .contenedor-navegacion{
        flex-direction: column;
        border: none;
    }

    .content-foo{
        margin-bottom: 20px;
        text-align: center;
    }

    .content-foo h4{
        border: none;
    }

    .content-foo p{
        color: #ccc;
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 20px;
    }

    .titulo-final{
        font-size: 20px;
    }

    .contenedor-footer {
        max-width: 80%;
        margin: 0 auto;
      }
    .contenedor-navegacion {
        max-width: 80%;
        margin: 0 auto;
      }
      
    .imagen-footer {
        max-width: 300px;
        height: auto;
        padding-top: 20px;
      }

   
}
    .logo{
        padding-top: 30px;
    }

.contenedor-login {
    display: flex;
    justify-content: center;  
    align-items: center;      
    height: 100vh;           
    text-align: center;       
    flex-direction: column;   
    padding: 20px;            
}


.imagen-login {
    width: 100%;
    max-width: 200px; 
    margin-bottom: 20px; 
    border-radius: 50%; 
}


.login-container {
    display: flex;
    flex-direction: column;   /* Asegura que los elementos estén apilados verticalmente */
    text-align: left;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
   
}

/* Estilos del formulario */
.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.input-group input:focus {
    border-color:  #e30613;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color:  #e30613 !important;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color:  #e30613;
}

.signup-link {
    text-align: center;
    margin-top: 10px;
}

.signup-link a {
    color: #e30613;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {

    .login-container {
        flex-direction: column;  /* La imagen estará encima del formulario */
        align-items: center;     /* Centra ambos elementos */
    }

    .imagen-login {
        max-width: 150px;    /* Redimensiona la imagen en pantallas pequeñas */
        margin-right: 0;     /* Elimina el margen derecho */
        margin-bottom: 20px; /* Agrega espacio entre la imagen y el formulario */
    }
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas del 50% de ancho cada una */
    gap: 20px; /* Espacio entre las columnas */
    padding: 20px;
    width: 100%; /* Aseguramos que el grid ocupe el 100% del contenedor */
    box-sizing: border-box; /* Incluye padding y border en el tamaño total del contenedor */
}

/* Estilo para los elementos dentro del grid */
.grid-item {
    background-color: #f4f4f4;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box; /* Incluye el padding dentro de las dimensiones del elemento */
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
.grid-container {
    grid-template-columns: 1fr; /* Cambiar a una sola columna */
    }
}

.contenedor-imagen {
    display: flex;           /* Usamos Flexbox */
    justify-content: center; /* Centra la imagen horizontalmente */
    align-items: center;     /* Centra la imagen verticalmente */
    height: 100%;           /* Altura del contenedor para que la imagen se centre dentro de la pantalla */
    width: 100%;             /* Opcional: asegura que el contenedor ocupe el 100% del ancho */
}

.imagen-registro {
    width: 100%;  /* La imagen ocupará todo el ancho del contenedor */
    object-fit: cover;  /* Esto asegura que la imagen cubra el contenedor sin distorsionarse */
}

/*Contacto*/
.container {
    width: 60%;
    margin: 0 auto;
    max-width: 1000px;
    padding-bottom: 100px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.contact-info h2 {
    text-align: center;
    color: #e30613;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.2em;
    text-align: center;
    color: #333;
}

.info-item {
    margin: 20px 0;
}

.info-item h3 {
    color: #e30613;
    font-size: 1.5em;
}

.info-item p {
    font-size: 1.2em;
}

a {
    color: #e30613;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #4b1415;
}

/* Estilos para las redes sociales */
.social-links {
    display: flex;
    flex-wrap: wrap; /* Permite que los botones se ajusten en varias filas */
    justify-content: space-evenly;
    margin-top: 20px; 
    gap: 15px;
   
}

.social-links a {
    padding: 10px 20px;
    background-color: #e30613;
    color: #fff;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 1em;
    transition: background-color 0.3s;
    white-space: nowrap; /* Evita que los textos se partan */
    max-width: 200px; /* Asegura que los botones no se expandan demasiado */
    text-align: center;
    box-sizing: border-box; /* Evita que los botones se desborden */
}

.social-links a:hover {
    background-color: #4b1415;
}


/* Pantallas pequeñas (móviles en modo retrato) */
@media screen and (max-width: 600px) {


    .container {
        width: 90%;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-info h2 {
        font-size: 1.6em;
    }

    .info-item h3 {
        font-size: 1.3em;
    }

    .info-item p {
        font-size: 1em;
    }

    .social-links a {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}

/* Pantallas medianas (tabletas) */
@media screen and (max-width: 768px) {

    .container {
        width: 85%;
    }

    .contact-info {
        padding: 25px;
    }

    .contact-info h2 {
        font-size: 1.8em;
    }

    .info-item h3 {
        font-size: 1.4em;
    }

    .info-item p {
        font-size: 1.1em;
    }

    .social-links a {
        font-size: 1em;
        padding: 10px 18px;
    }
}

/* Pantallas grandes (escritorios) */
@media screen and (min-width: 1000px) {
    .container {
        width: 70%;
    }
}

/* Estilos del modal */
#myModal {
    display: none; /* El modal está oculto por defecto */
    position: fixed; /* Posición fija para que cubra toda la pantalla */
    z-index: 1000; /* Asegura que el modal esté encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%; /* Ocupa el 100% del ancho de la pantalla */
    height: 100%; /* Ocupa el 100% de la altura de la pantalla */
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro translúcido */
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center; /* Centra el contenido verticalmente */
}

/* Estilos para la imagen en el modal */
#myModal img {
    max-width: 90%; /* Asegura que la imagen no sea más grande que el 90% del ancho de la pantalla */
    max-height: 90%; /* Asegura que la imagen no sea más grande que el 90% de la altura de la pantalla */
    object-fit: contain; /* Mantiene la relación de aspecto de la imagen */
}
.credencial {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 60%;
    margin: 100px auto 0px auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Por defecto, en pantallas pequeñas, la credencial será vertical */
  }

  @media (min-width: 768px) {
    .credencial {
      flex-direction: row; /* En pantallas más grandes, la credencial será horizontal */
    }
  }
  .foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    align-self: center;
  }

  .foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .datos {
    flex: 1;
  }

  .datos h2 {
    margin-bottom: 10px;
  }

  .datos p {
    margin-bottom: 5px;
  }
  .franja {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 60%;
    margin: 10px auto 30px auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Por defecto, en pantallas pequeñas, la credencial será vertical */
  }
  

  @media (min-width: 768px) {
    .franja {
      flex-direction: row; /* En pantallas más grandes, la credencial será horizontal */
    }
    
  
  }

  .franjaVerde {
    align-self: center;

  }

  select {
    width: 100%;
    padding: 10px 10px 10px 0px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }
  #security-banner {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

#security-banner button {
    font-size: 20px;
    color: #000;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
  
  
